[index]

Type Command

Syntax

type <text> [with shiftKey] | [with OptionKey] |
[with commandKey]

Description

The type command simulates typing at the keyboard by typing characters at the insertion point. When using the type command from a script, choose the text tool before selecting an insertion point. If the [with commandKey] option is used, no text is typed, but rather the equivalent keyboard shortcut is performed.

Notes

The text insertion point is placed by clicking in an unlocked field or dataSheet with the Browse tool or by sending the tabKey message. Paint text can be typed at the text insertion point on a card or background by selecting the Paint Text tool before using the type command

Examples

Go to a blank card and create a button with the following script: on mouseUp choose text tool click at 100,100 type "Oracle Media Objects" choose browse tool end mouseUp
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.